package com.example.demo.mapper;

import com.example.demo.model.Inquiry;
import com.example.demo.model.InquiryParts;
import com.example.demo.model.InquirySupplier;
import com.example.demo.model.vo.InquiryPartsVo;
import com.example.demo.model.vo.InquirySupplierVo;
import com.example.demo.model.vo.InquiryVo;
import com.example.demo.util.Result;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Set;

/**
 * Created by Administrator on 2018/10/26 0026.
 */
@Mapper
public interface InquiryMapper {
    InquiryVo selectById(@RequestParam("id") Integer id);
    List<InquiryPartsVo> selectByInquiryParts(@RequestParam("id") Integer id);
    List<InquirySupplierVo> selectByInquirySupplier(@RequestParam("id") Integer id);
    List<InquiryParts> queryByPartCodes(List<String> partCodes);
    int addInquiry(Inquiry inquiry);
    int insertInquiryParts(@Param("partsList") List<InquiryPartsVo> partsList);
    int insertInquirySupplier(@Param("supplierList") List<InquirySupplierVo> supplierList);
}
